import request from '@/utils/request'

export const getSpotForFill = (params) => {
  return request({
    url: '/v1/datan/spot/fill/',
    method: 'get',
    params,
  })
}
// 保存现货数据
export const saveSpotFill = (data) => {
  return request({
    url: '/v1/datan/spot/fill/',
    method: 'post',
    data,
  })
}

// 获取现货基差表
export const getSpotBasicTable = (params) => {
  return request({
    url: '/v1/datan/spot/basic/',
    method: 'get',
    params,
  })
}

// 导出现货基差表
export const exportSpotBasicTable = (data) => {
  return request({
    url: '/v1/datan/spot/basic/exportExcel/',
    method: 'post',
    data,
  })
}

// 获取现货价格季节分析数据
export const getSpotSeasonTable = (params) => {
  return request({
    url: '/v1/datan/spot/price/season/',
    method: 'get',
    params,
  })
}
